<% @page_title = @discipline.name %>
<% @blurb = discipline_blurb %>
<%= render :partial => 'info_sidebar' %>

<%= breadcrumbs %>

<div class="column span-16 last discipline-description">
  <%= white_list(simple_format(@discipline.description)) %>
</div>

</div>
<div class="container content">

<div class="column prepend-7 span-8">
  <h3><%=h @discipline.name %> Articles</h3>
  <%= render :partial => 'articles/article', :collection => @articles, :locals => { :listing => true } %>
  <% if @articles.size == 0 %>
    There are no articles in <%=h @discipline.name %> yet.
  <% end %>
  <%= will_paginate @articles, :param_name => :article_page %>
</div>

<div class="column span-8 append-1 last">
  <h3><%=h @discipline.name %> forum posts</h3>
  <%= render :partial => 'discussions/discussion', :collection => @discussions, :locals => { :listing => true } %>
  <% if @discussions.size == 0 %>
    There are no discussions in <%=h @discipline.name %> yet.
  <% end %>
  <%= will_paginate @discussions, :param_name => :discussion_page %>
</div>

<div class="column prepend-7 span-16 append-1 last">
  <p></p>
  <hr />
  <h3><%=h @discipline.name %> Members</h3>
  <% if @members.size == 0 %>
    No members have joined <%=h @discipline.name %> yet.
  <% else %>
    <table class="friend-list" border="0">
      <% @members.in_groups_of(4, false) do |row| %>
        <tr>
          <% row.each do |friend| %>
            <td>
              <%= avatar_for(friend) %>
              <p><%= link_to friend.name, profile_url(friend.login) %></p>
            </td>
          <% end %>
        </tr>
      <% end %>
    </table>
  <% end %>
</div>
